package com.summary.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.sql.Struct;
import java.util.Date;

/**
 * 周报对象 tb_week_summary
 *
 * @author ruoyi
 * @date 2024-01-15
 */
@Data
public class WeekSummary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 和user表中对应 */
    @Excel(name = "和user表中对应")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 总结内容 */
    @Excel(name = "总结内容")
    private String briefSummary;

    /** 等级 */
    @Excel(name = "等级")
    private Long level;

    /** 与time表关联的字段 */
    @Excel(name = "与time表关联的字段")
    private Long timeId;


    /** time表中的字段 */
    private String startTime;
    private String  endTime;
    private Long number;


    public void setStartTime(String startTime){
        this.startTime = startTime;
    }

    public void setEndTime(String endTime){
        this.endTime = endTime;
    }

    public void setNumber(Long number){
        this.number = number;
    }

    public String getStartTime(String startTime){
        return startTime;
    }

    public String getEndTime(String endTime){
        return endTime;
    }

    public long getNumber(Long number){
        return number;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setBriefSummary(String briefSummary)
    {
        this.briefSummary = briefSummary;
    }

    public String getBriefSummary()
    {
        return briefSummary;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel()
    {
        return level;
    }
    public void setTimeId(Long timeId)
    {
        this.timeId = timeId;
    }

    public Long getTimeId()
    {
        return timeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("briefSummary", getBriefSummary())
            .append("createTime", getCreateTime())
            .append("level", getLevel())
            .append("timeId", getTimeId())
            .toString();
    }
}
